/*package cn.wx.scholar.es.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import cn.wx.common.persistence.base.BaseController;
import cn.wx.common.persistence.web.ResponseData;
import cn.wx.scholar.es.service.EsFieldService;
import cn.wx.scholar.es.service.EsOrgService;

@RestController
@RequestMapping("/esReadData")
public class EsReadDataController extends BaseController {
	
	@Autowired
	private EsFieldService esFieldService;
	
	@Autowired
	private EsOrgService esOrgService;

	@RequestMapping(value = "/createBatch", method = RequestMethod.POST)
    public ResponseData createBatch() throws Exception {
        return success(esFieldService.create());
    }
	
	@RequestMapping(value = "/createOrgBatch", method = RequestMethod.POST)
    public ResponseData createOrgBatch() throws Exception {
        return success(esOrgService.create());
    }
	
	@RequestMapping(value = "/queryFullText", method = RequestMethod.POST)
    public ResponseData queryFullText(String keyword) throws Exception {
        return success(esFieldService.queryFullText(keyword));
    }
	
	
	
}
*/